package com.san.common.auth.service;

import com.san.common.auth.entity.SysUser;

import java.util.Optional;

public interface UserService {

    Optional<SysUser> getUserByEmail(String email);

    Optional<SysUser> getUserByUsername(String username);

    SysUser getUserByEmailNotNull(String email);

    SysUser getUserByUsernameNotNull(String username);

    boolean passwordMatch(SysUser sysUser, String password);

    boolean useMFA(Integer mfaType);
}
